package im.youni.horus.core.module;

/**
 * 钩子对象
 */
public final class Hook {

    /**
     * shutdown钩子
     */
    public static void shutdown() {
        Runtime.getRuntime().addShutdownHook(new Thread(
                new Runnable() {
                    @Override
                    public void run() {
                        Discover.deRegister();
                    }
                }
        ));
    }

}
